package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ShoptypeMapper;
import com.ruoyi.domain.Shoptype;
import com.ruoyi.service.IShoptypeService;

/**
 * 商品标签Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-05-22
 */
@Service
public class ShoptypeServiceImpl implements IShoptypeService 
{
    @Autowired
    private ShoptypeMapper shoptypeMapper;

    /**
     * 查询商品标签
     * 
     * @param id 商品标签主键
     * @return 商品标签
     */
    @Override
    public Shoptype selectShoptypeById(Long id)
    {
        return shoptypeMapper.selectShoptypeById(id);
    }

    /**
     * 查询商品标签列表
     * 
     * @param shoptype 商品标签
     * @return 商品标签
     */
    @Override
    public List<Shoptype> selectShoptypeList(Shoptype shoptype)
    {
        return shoptypeMapper.selectShoptypeList(shoptype);
    }

    /**
     * 新增商品标签
     * 
     * @param shoptype 商品标签
     * @return 结果
     */
    @Override
    public int insertShoptype(Shoptype shoptype)
    {
        return shoptypeMapper.insertShoptype(shoptype);
    }

    /**
     * 修改商品标签
     * 
     * @param shoptype 商品标签
     * @return 结果
     */
    @Override
    public int updateShoptype(Shoptype shoptype)
    {
        return shoptypeMapper.updateShoptype(shoptype);
    }

    /**
     * 批量删除商品标签
     * 
     * @param ids 需要删除的商品标签主键
     * @return 结果
     */
    @Override
    public int deleteShoptypeByIds(Long[] ids)
    {
        return shoptypeMapper.deleteShoptypeByIds(ids);
    }

    /**
     * 删除商品标签信息
     * 
     * @param id 商品标签主键
     * @return 结果
     */
    @Override
    public int deleteShoptypeById(Long id)
    {
        return shoptypeMapper.deleteShoptypeById(id);
    }
}
